package com.xiaoxi.dragsortlistview.countdown;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.xiaoxi.dragsortlistview.R;


/**
 * listView的item倒计时
 */
public class CountdownListActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_countdown_list);

        findViewById(R.id.btn_countdown_demo1).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(CountdownListActivity.this, CountdownDemo1Activity.class));
            }
        });
        findViewById(R.id.btn_countdown_view).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(CountdownListActivity.this, AndroidCountDownViewActivity.class));
            }
        });
        findViewById(R.id.btn_countdown_list).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(CountdownListActivity.this, ListViewActivity.class));
            }
        });
    }
}
